package edu.ycu.aladdin.web.common;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageData<D> implements Serializable {

    private Long total;

    private Long currentPage;

    private Integer pageSizes;

    private List<D> data;

    public PageData() {}

    public PageData(Long total, Long currentPage, Integer pageSizes, List<D> data) {
        this.total = total;
        this.currentPage = currentPage;
        this.pageSizes = pageSizes;
        this.data = data;
    }
}
